package com.azzcs.customer.controller;

import com.azzcs.customer.config.Security;
import com.azzcs.mvc.mav.Model;
import com.azzcs.spring.anno.Controller;
import com.azzcs.spring.anno.RequestMapping;

/**
 * @Author: wzg
 * @Date: 2020/12/29 上午10:56
 */
@Controller
@RequestMapping("/home")
@Security({"zhangsan","lisi"})
public class HomeController {

    @RequestMapping("/success")
    @Security({"wangwu"})
    public String success(Model model,String username){
        model.setAttribute("username",username);
        model.setAttribute("key","value");
        return "success";
    }
}
